package vg.services.user_interface_manager.additional_swing_components.conditionPanel.data;

/**
 * Describes conditions in condition panel.
 *
 * @author Timur Zolotuhin (tzolotuhin@gmail.com)
 */
public class ConditionToken {
    // Defines
    public static final int BRACKET_TOKEN_TYPE = 1;
    public static final int COMPARISON_TOKEN_TYPE = 2;
    public static final int OPERATION_TOKEN_TYPE = 3;
    public static final int STRING_ATTRIBUTE_NAME_TOKEN_TYPE = 4;
    public static final int REAL_ATTRIBUTE_NAME_TOKEN_TYPE = 5;
    public static final int STRING_ATTRIBUTE_VALUE_TOKEN_TYPE = 6;
    public static final int REAL_ATTRIBUTE_VALUE_TOKEN_TYPE = 7;

    // Main data
    private String token;
    private int type;

    public ConditionToken(String token, int type) {
        this.token = token;
        this.type = type;
    }

    public String getToken() {
        return token;
    }

    public int getType() {
        return type;
    }
}
